<?php
// no direct access
defined('_JEXEC') or die('Restricted access');

class modhdArticleHelper
{
	function getTheArticle(&$params)
	{
		$db 	=& JFactory::getDBO();
		$artid 	= (int) $params->get('artid', 1);
		$query = 'SELECT a.* ' .
			' FROM #__content AS a' .
			' WHERE a.id = '. (int) $artid;
		$db->setQuery($query); $rows = $db->loadObjectList();
		if ($db->getErrorNum()) {JError::raiseWarning( 500, $db->stderr() );}
		return $rows;}
}
